﻿@import '_variaveis.scss';
@import '_mixins.scss';

#sectionVerProduto {
    @include float(auto, 100%);

    h1 {
        font-size: 60px;
    }

    #articleRating {
        text-align: center;
        margin-bottom: 20px;
    }

    #sectionProduto {
        @include float(auto, 100%);

        #articleImagensProduto {
            @include float(auto, 40%, 0, 2%);
            background: white;
            font-size: 20px;
            text-align: center;

            #imgProduto {
                min-height: 300px;
                max-height: 500px;
                max-width: 100%;
            }

            #articleOutrasImagens {
                margin-left: 2%;
                width: 96%;
                text-align: left;
                border-top: 2px dashed $verde_bybike;
            }
        }

        #articleInfoVendas {
            @include float(auto, 55%, 30px, 1%);

            #articlePreco {
                @include float(180px, 50%, 0, 2%);

                #articlePrecoAntigo {
                    @include float(60px, 100%, 0, 0);
                    font-size: 20px;
                    font-weight: bold;
                    color: forestgreen;

                    #lblPrecoAntigo {
                        font-weight: normal;
                        color: black;
                        text-decoration: line-through;
                    }
                }

                #articlePrecoNovo {
                    @include float(60px, 100%, 0, 0);
                    font-size: 60px;
                    font-weight: bold;
                    color: red;
                }

                #articleDividir {
                    @include float(40px, 100%, 10px, 0);
                    font-size: 40px;
                    color: black;
                }
            }

            #articleAdicionarCarrinho {
                @include float(160px, 35%, 0, 0);
                line-height: 79px;
                text-align: right;

                #btnAdicionarCarrinho {
                    height: 150px;
                }
            }

            #articleTamanhosCoresDisponiveis {
                @include float(auto, 90%, 0, 1%);

                legend {
                    font-size: 3em;
                }

                #articleTamanhosDisponiveis {
                    @include float(150px, 100%, 0, 0, true);

                    .buttonTamanhos {
                        height: 80px;
                        min-width: 150px;
                        background: #555;
                        color: $verde_bybike;
                    }
                }

                #articleCoresDisponiveis {
                    @include float(150px, 100%, 0, -10000px, false, true);

                    .buttonCores {
                        @extend .buttons;
                        height: 80px;
                        min-width: 150px;
                        background: #555;
                        color: $verde_bybike;
                    }
                }
            }

            #articleQuantidadeDisponivel {
                @include float(auto, 90%, 0, -10000px);
                font-size: 2em;
            }
        }

        #articleTituloProduto {
            @include float(auto, 96%, 20px, 2%);

            #articleTitulo {
                @include float(auto, 99%, 0, 0);
                padding-top: 20px;
                padding-bottom: 20px;
                padding-left: 1%;
                font-size: 30px;
                color: $verde_bybike;
                background: $background_header;
            }

            #articleInfoProduto {
                font-size: 26px;
                padding-top: 100px;
                padding-bottom: 100px;
            }
        }
    }
}

#sectionPopUpComprar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5000px;
    width: 100%;
    z-index: 5;
    background: rgba(0, 0, 0, 0.8);
    display: none;

    #sectionInner {
        position: fixed;
        top: calc(50% - 350px);
        left: calc(50% - 700px);
        height: 700px;
        width: 1400px;
        background: white;

        #headPopUp {
            height: 50px;
            width: 100%;

            #divTitulo {
                @include float(100%, 93%);
                padding-left: 2%;
                line-height: 50px;
                background: $background_header;
                color: $verde_bybike;
            }

            #divFecharPopUp {
                @include float(100%, 5%);
                background: $background_header url('') /*../../Imagens/Icones/close_green.png*/ no-repeat center;
                background-size: 60%;
                cursor: pointer;
            }
        }

        #articlePopUp {
            margin: 20px 0 0 2.5%;
            padding: 10px 0 10px 0;
            width: 95%;
            
            h3 {
                padding: 10px 0 10px 0;
                font-family: 'Segoe UI';
                font-weight: normal;
                text-align: center;
                background: $verde_bybike;
            }

            .divTamanhos {
                margin-top: 20px;
                margin-left: 10px;

                .buttonTamanhos {
                    height: 80px;
                    min-width: 150px;
                    font-size: 20px;
                    border: none;
                    background: #555;
                    color: $verde_bybike;
                }

                .buttonActive {
                    height: 80px;
                    min-width: 150px;
                    font-size: 20px;
                    border: none;
                    background: #333;
                    color: $verde_bybike;
                }
            }

            .displayNone {
                display: none;
            }
        }
    }
}

@media only screen and (max-width: 1300px) and (min-width: 1051px) {
    #sectionVerProduto {
        h1 {
            font-size: 50px !important;
        }

        #sectionProduto {
            #articleInfoVendas {
                #articlePreco {
                    #articlePrecoNovo {
                        font-size: 40px !important;
                    }

                    #articleDividir {
                        font-size: 30px !important;
                    }
                }

                #articleAdicionarCarrinho {
                    #btnAdicionarCarrinho {
                        height: 150px !important;
                    }
                }
            }

            #articleTituloProduto {
                #articleTitulo {
                    font-size: 24px !important;
                }

                #articleInfoProduto {
                    font-size: 20px !important;
                }
            }
        }
    }
}

@media only screen and (max-width: 1050px) and (min-width: 341px) {
    #sectionVerProduto {
        h1 {
            font-size: 50px !important;
        }

        #sectionProduto {
            #articleInfoVendas {
                #articlePreco {
                    #articlePrecoNovo {
                        font-size: 40px !important;
                    }

                    #articleDividir {
                        font-size: 20px !important;
                    }
                }

                #articleAdicionarCarrinho {
                    #btnAdicionarCarrinho {
                        height: 100px !important;
                    }
                }
            }

            #articleTituloProduto {
                #articleTitulo {
                    font-size: 24px !important;
                }

                #articleInfoProduto {
                    font-size: 20px !important;
                }
            }
        }
    }
}

@media only screen and (max-width: 340px) {
    #sectionVerProduto {
        h1 {
            font-size: 30px;
        }

        #sectionProduto {
            #articleImagensProduto {
                @include float(auto, 100%, 0);
                background: white;
                font-size: 20px;
                text-align: center;

                #imgProduto {
                    min-height: 200px;
                    max-height: 350px;
                    max-width: 100%;
                }

                #articleOutrasImagens {
                    margin-left: 2%;
                    width: 96%;
                    text-align: left;
                    border-top: 2px dashed $verde_bybike;
                }
            }

            #articleInfoVendas {
                @include float(auto, 98%, 30px, 1%);

                #articlePreco {
                    @include float(auto, 98%, 0, 1%);

                    #articlePrecoAntigo {
                        @include float(auto, 100%, 0, 0);
                        font-size: 20px;
                        font-weight: bold;
                        color: forestgreen;

                        #lblPrecoAntigo {
                            font-weight: normal;
                            color: black;
                            text-decoration: line-through;
                        }
                    }

                    #articlePrecoNovo {
                        @include float(auto, 100%, 0, 0);
                        font-size: 40px;
                        font-weight: bold;
                        color: red;
                    }

                    #articleDividir {
                        @include float(auto, 100%, 10px, 0);
                        font-size: 30px;
                        color: black;
                    }
                }

                #articleAdicionarCarrinho {
                    @include float(auto, 100%, 0, 0);
                    line-height: 79px;
                    text-align: center;

                    #btnAdicionarCarrinho {
                        height: 100px;
                    }
                }

                #articleTamanhosCoresDisponiveis {
                    @include float(auto, 90%, 0, 1%);
                    /*background: red;*/
                    legend {
                        font-size: 3em;
                    }

                    #articleTamanhosDisponiveis {
                        @include float(150px, 100%, 0, 0);

                        .buttonTamanhos {
                            @extend .buttons;
                            height: 80px;
                            min-width: 150px;
                            background: #555;
                            color: $verde_bybike;
                        }
                    }

                    #articleCoresDisponiveis {
                        @include float(150px, 100%, 0, -10000px, false, true);

                        .buttonCores {
                            @extend .buttons;
                            height: 80px;
                            min-width: 150px;
                            background: #555;
                            color: $verde_bybike;
                        }
                    }
                }

                #articleQuantidadeDisponivel {
                    @include float(auto, 90%, 0, -10000px);
                    font-size: 2em;
                }
            }

            #articleTituloProduto {
                @include float(auto, 100%, 20px);

                #articleTitulo {
                    @include float(auto, 100%, 0, 0);
                    padding-top: 20px;
                    padding-bottom: 20px;
                    font-size: 26px;
                    color: $verde_bybike;
                    background: $background_header;
                }

                #articleInfoProduto {
                    font-size: 20px;
                    padding-top: 100px;
                    padding-bottom: 100px;
                    text-align: justify;
                }
            }
        }
    }
}
